package com.liuqi.openai.util;

/**
 * @author liuqi
 * @date 2025/7/18
 **/
public final class ExceptionUtil {
    public static IllegalArgumentException illegalArgument(String format, Object... args) {
        return new IllegalArgumentException(String.format(format, args));
    }

    public static IllegalArgumentException illegalArgument(Throwable t, String format, Object... args) {
        return new IllegalArgumentException(String.format(format, args), t);
    }
}
